In this tutorial we are going to make a simple magnetic door sensor based Security system. Magnetic Door Switch is readily available in any electronic store online or offline. The project is cost effective and can be made easily, using some basic components and arduino.
Code : https://drive.google.com/open?id=13NREY4my7RkboAtQVPusfTK7IO1P59hczcEQdmdF2fs